﻿using System;
using System.ServiceModel.Activation;
using System.Web;
using System.Web.Routing;
using Ezio.Service;
using Ezio.Security;

namespace Ezio
{
    public class Global : HttpApplication
    {
        void Application_Start(object sender, EventArgs e)
        {
            RegisterRoutes();
        }

        private void RegisterRoutes()
        {
            RouteTable.Routes.Add(new ServiceRoute("Zonas", new WebServiceHostFactory(), typeof(ZonasService)));
            RouteTable.Routes.Add(new ServiceRoute("TiposMenus", new WebServiceHostFactory(), typeof(TiposMenusService)));
            RouteTable.Routes.Add(new ServiceRoute("SalidasColegios", new WebServiceHostFactory(), typeof(SalidasColegiosService)));
            RouteTable.Routes.Add(new ServiceRoute("SalidasBodegas", new WebServiceHostFactory(), typeof(SalidasBodegasService)));
            RouteTable.Routes.Add(new ServiceRoute("Requerimientos", new WebServiceHostFactory(), typeof(RequerimientosService)));
            RouteTable.Routes.Add(new ServiceRoute("OrdenesCompras", new WebServiceHostFactory(), typeof(OrdenesComprasService)));
            RouteTable.Routes.Add(new ServiceRoute("Municipios", new WebServiceHostFactory(), typeof(MunicipiosService)));
            RouteTable.Routes.Add(new ServiceRoute("Menus", new WebServiceHostFactory(), typeof(MenusService)));
            RouteTable.Routes.Add(new ServiceRoute("ItemsCompromisos", new WebServiceHostFactory(), typeof(ItemsCompromisosService)));
            RouteTable.Routes.Add(new ServiceRoute("Insumos", new WebServiceHostFactory(), typeof(InsumosService)));
            RouteTable.Routes.Add(new ServiceRoute("EntradasBodegas", new WebServiceHostFactory(), typeof(EntradasBodegasService)));
            RouteTable.Routes.Add(new ServiceRoute("Empresas", new WebServiceHostFactory(), typeof(EmpresasService)));
            RouteTable.Routes.Add(new ServiceRoute("Departamentos", new WebServiceHostFactory(), typeof(DepartamentosService)));
            RouteTable.Routes.Add(new ServiceRoute("Contratos", new WebServiceHostFactory(), typeof(ContratosService)));
            RouteTable.Routes.Add(new ServiceRoute("Colegios", new WebServiceHostFactory(), typeof(ColegiosService)));
            RouteTable.Routes.Add(new ServiceRoute("Bodegas", new WebServiceHostFactory(), typeof(BodegasService)));
            RouteTable.Routes.Add(new ServiceRoute("Compromisos", new WebServiceHostFactory(), typeof(CompromisosService)));
            RouteTable.Routes.Add(new ServiceRoute("Presupuestos", new WebServiceHostFactory(), typeof(PresupuestosService)));
        }
    }
}
